Skip to content

Conversation

@arttu-peltonen
Copy link
Contributor

Purpose of this PR

This PR is a hotfix for an exception that happens in URP when entering play mode, with the following error message:

InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings.

This error only happened if the project's input is configured to use "Input System Package (New)".

Example of failure: https://yamato.cds.internal.unity3d.com/jobs/902-Graphics/tree/master/.yamato%252Furp_performance_boatattack-linux-vulkan.yml%2523URP_Performance_BoatAttack_Linux_Vulkan_performance_playmode_editor_mono_Linear_trunk/6516042/job


Testing status

Fix was made on universal/debug-views/uipolish several weeks ago and has been in use on that branch since then. Briefly re-tested this change in isolation before making this PR.

@arttu-peltonen arttu-peltonen marked this pull request as ready for review April 28, 2021 11:43
@arttu-peltonen
Copy link
Contributor Author

Yamato is backed up - got green light to just merge this as it's tested locally.

@arttu-peltonen arttu-peltonen merged commit c5720d0 into master Apr 28, 2021
@arttu-peltonen arttu-peltonen deleted the universal/bugfix/debug-views-inputsystem-error branch April 28, 2021 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants